/*
 *  math.h
 *  Asset modeling
 *
 *  Created by Peeter Meos on 27.02.11.
 *  Copyright 2011 NC3A CAT1. All rights reserved.
 *
 */

#include <math.h>
#include <stdlib.h>

#define PI 3.141592653589793238462643

// For generating uniformly U[0,1] and exponentially distributed RVs

extern double uniform_dist();
extern double exp_dist(double lambda);

// For LATLONG distance calculations

extern double deg2rad(double deg);
extern double distance(double x1, double y1, double x2, double y2);
